//
// Created by ChaoDONG on 2021-03-17.
//

/* squares.c -- produces a table of first 20 squares */
/* squares.c -- 计算1～20的平方 */

#include <stdio.h>

int main(void){

    int num = 1;

    while (num < 21)
    {
        printf("square(%2d) = %-d\n", num, num * num);

        num = num + 1;
    }

    return 0;
}